﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class musicTeacher:Teacher,Isportsman,Iprogramable
    {
        private string name;

        public string Name { get => name; set => name = value; }

        
        public musicTeacher(string name,string Cource):base(Cource)
        {
            this.name = name;
        }
        public void ability() 
        {
            Console.WriteLine(" 我叫{0}",this.name);
        }

        public void sports()
        {
            Console.WriteLine("我会半程马拉松");
        }

        public void program()
        {
            Console.WriteLine("我会编程");
        }
    }
}
